package com.oba.king.sysmanager;

import javax.swing.tree.MutableTreeNode;

import com.oba.base.interfaces.ITreeItem;
import com.oba.base.service.BaseBo;

public class Dept extends BaseBo implements ITreeItem {
	
	private Long id;
	private String name;
	private String desc;
	private Dept parent;
	private String remark;
	private String serial;
	
	private MutableTreeNode node;

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getSerial() {
		return serial;
	}

	public void setSerial(String serial) {
		this.serial = serial;
	}

	public Long getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public Dept getParent() {
		return parent;
	}

	public void setParent(Dept parent) {
		this.parent = parent;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public MutableTreeNode getNode() {
		return this.node;
	}

	public boolean isParent(ITreeItem parentItem) {
		Dept parent = (Dept) parentItem;
		return this.serial.startsWith(parent.serial);
	}

	public void setNode(MutableTreeNode treeNode) {
		this.node = treeNode;
	}

}
